package cn.heima2.code;

public class Demo2 {
    public static void main(String[] args) {
        Zi1 zi = new Zi1();
        zi.makeMoney();
    }

}
class Fu1{
    int num = 10;
    public Fu1(){
        System.out.println("我是fu1无参构造方法");
    }
    public void makeMoney(){
        System.out.println("辛苦一个月，月薪3000");
    }
}
class Zi1 extends Fu1{
    int num =100;
    public  Zi1(){
        System.out.println("我是Zi1无参构造方法");
    }
    //
    public void makeMoney(){
        super.makeMoney();
        System.out.println("轻松一个月，月入12000");
    }
}

